<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="url" @message="postMessage"></web-view>
	</view>
</template>

<script>
	import {
	  BASE_URL
	} from '@/utils/api';
	export default {
		data() {
			return {
				webviewStyles: {
				  progress: {
				    color: '#FF3333'
				  }
				},
				url: ''
			}
		},
		onLoad(opt) {
			this.url = opt.url?opt.url: 'oapi/link/protocol';
			this.url = BASE_URL + this.url;
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
